import request from '../util/request.js'
const baseUrl = "store/product/cart/info/"

export function getStoreOrderProductInfoList(data) {
	return request.get(baseUrl + "list", data, {
		noAuth: false
	})
}

export function getStoreOrderProductDetail(data) {
	return request.get(baseUrl + "detail", data, {
		noAuth: false
	})
}


export function orderReceiving(data) {
	return request.post(baseUrl + "receiving", data, {
		noAuth: false
	})
}


export function storeRefund(data) {
	return request.post(baseUrl + "refund", data, {
		noAuth: false
	})
}
export function refundInfo(data) {
	return request.get(baseUrl + "refund/product/info", data, {
		noAuth: false
	})
}
export function storeCancelRefund(data) {
	return request.post(baseUrl + "cancel/refund", data, {
		noAuth: false
	})
}

//代理下单，退款
export function applyRefund(data) {
	return request.post(baseUrl + "apply/refund", data, {
		noAuth: false
	})
}

//代理审核退款
export function agentRefund(data) {
	return request.post(baseUrl + "agent/refund", data, {
		noAuth: false
	})
}

export function deleteCartInfo(data) {
	return request.get(baseUrl + "delete", data, {
		noAuth: false
	})
}


export function getOrderInfoList(data) {
	return request.get(baseUrl + "order/list", data, {
		noAuth: false
	})
}

export function subAgentStock(data) {
	return request.post(baseUrl + "sub/agent/stock", data, {
		noAuth: false
	})
}


export function getNotifyList() {
	return request.get(baseUrl + "notify/list", {}, {
		noAuth: true
	})
}




export function getChildOrderList(data) {
	return request.get(baseUrl + "child/list", data, {
		noAuth: false
	})
}
